<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>登录</title>
    <meta charset="UTF-8" />
    <link rel="stylesheet" href="/main.css" th:href="@{/main.css}" />
</head>
<body>
    <p th:if="${loginError}" class="error">密码错误</p>
    <form th:action="@{/login}" method="post">
        <table style="text-align: center">
            <tr>
                <th colspan="2">登录</th>
            </tr>
            <tr>
                <td>用户名：</td>
                <td><input type="text" name="username" id="username" autofocus="autofocus" /></td>
            </tr>
            <tr>
                <td>密码：</td>
                <td><input type="password" name="password" id="password" /></td>
            </tr>
            <tr>
                <td><input type="submit" value="提交" /></td>
                <td><input type="reset" value="重置" /></td>
            </tr>
        </table>
    </form>
</body>
</html>